package com.fh.service.cuijimanage;

import com.fh.mapper.loan.TransferHistoryInfoMapper;
import com.fh.model.loan.TransferHistoryInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created by dell、 on 2017/7/14.
 */
@Service
public class TransferHistoryInfoServiceImpl {
    private Logger logger = LoggerFactory.getLogger(CuijimanageServiceImpl.class);

    @Autowired
    private TransferHistoryInfoMapper transferHistoryInfoMapper;

    @Transactional(readOnly = true)
    public List<TransferHistoryInfo> findAllTransferHistoryInfoListByCallLoanId(Map<String,Object> map){
        return  transferHistoryInfoMapper.findAllTransferHistoryInfoListByCallLoanId(map);
    }
    /**
     * 插入流转记录信息
     * 
     * @param transferHistoryInfo
     * @return
     */
    public int insertInfo(TransferHistoryInfo transferHistoryInfo){
    	return transferHistoryInfoMapper.insert(transferHistoryInfo);
    }
}
